package com.ruoran.user.domain;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

@Setter
@Getter
public class Card implements Serializable {

    private Integer id;
    private String number;
    private Integer type;
    private String name;
    private Date issueDate;
    private Date expiringDate;

    public Card() {
    }

    public Card(Integer type, String name, Date startTime) {
        super();
        this.type = type;
        this.name = name;
        this.issueDate = startTime;
    }

    public Card(String number, Integer type, String name, Date startTime) {
        super();
        this.number = number;
        this.type = type;
        this.name = name;
        this.issueDate = startTime;
    }

    public Card(Integer id, String number, Integer type, String name, Date startTime) {
        super();
        this.id = id;
        this.number = number;
        this.type = type;
        this.name = name;
        this.issueDate = startTime;
    }

    @Override
    public String toString() {
        return "Card{" +
                "id=" + id +
                ", number='" + number + '\'' +
                ", type=" + type +
                ", name='" + name + '\'' +
                ", issueDate=" + issueDate +
                ", expiringDate=" + expiringDate +
                '}';
    }
}
